import '../common/base/base.css'
import '../common/base/750rem.css'
import Vue from 'vue'

import '../components/suiPlugin'

import { Search ,Icon} from 'vant'

// 项目的入口
import App from './spa.vue'

import router from '../router'
import mixin from '../mixins/common'
// 引入公共js
const rootEle = document.createElement('div')
document.body.appendChild(rootEle)
Vue.use(Search)
Vue.use(Icon)

Vue.config.devtools = process.env.NODE_ENV === 'development'
Vue.mixin(mixin)

var VueCodeMirror = require('vue-codemirror-lite')

Vue.use(VueCodeMirror)
import { codemirror } from 'vue-codemirror-lite'
require('codemirror/mode/javascript/javascript')
require('codemirror/mode/vue/vue')

require('codemirror/addon/hint/show-hint.js')
require('codemirror/addon/hint/show-hint.css')
require('codemirror/addon/hint/javascript-hint.js')
new Vue({
  router,
  render: (h) => h(App) // 把app挂载到html里
}).$mount(rootEle)
